package ng

import (
	//"zhgk.org/sqldb"
	"fmt"
	"git.oschina.net/zhgk/sqldb"
)
/**
英雄服务器
***/
type HeroService struct {
}

func (p HeroService)QueryHeroes() (res bool, msg string, data sqldb.RowMaps) {
	index := 0
	for index < 100 {
		data = append(data, sqldb.RowMap{"id":index, "name":fmt.Sprintf("英雄%d", index)})
		index++
	}
	return true, "success", data
}

func (p HeroService)QueryHeroInfo(id string) (res bool, msg string, data sqldb.RowMap) {
	return true, "success", sqldb.RowMap{"id":id, "name":fmt.Sprintf("英雄%s", id)}
}